package ${package}.service.impl;

import com.dragon.common.JpaServiceImpl;
import ${package}.entity.${className}Entity;
import ${package}.repository.${className}Repository;
import ${package}.service.${className}Service;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;

import java.util.List;
import java.util.Optional;

/**
 * <p>
 * ${tableComment} 服务实现类
 * </p>
 *
 * @author ${author}
 * @since ${since}
 */
@Slf4j
@Service
public class ${className}ServiceImpl extends JpaServiceImpl<${className}Repository, ${className}Entity, Integer> implements ${className}Service {

    @Override
    public ${className}Entity findById(Integer id) {
        Optional<${className}Entity> optional = getJpaDao().findById(id);
        return optional.orElse(null);
    }

    @Override
    public void removeByIds(List<Integer> idList) {
        getJpaDao().deleteByIdList(idList);
    }
}
